#ifndef ALGORITHM_H_
#define ALGORITHM_H_

template<typename InputIterator>
void showFor(InputIterator first, InputIterator last)
{
	if (first == last)
		return;
	for (auto temp = first; temp != last; ++temp)
	{
		cout << (*temp) << endl;
	}
}

template<typename InputIterator>
void showFun(InputIterator first, InputIterator last, Show<typename iterator_traits<InputIterator>::value_type>* show)
{
	if (first == last)
		return;
	for (auto temp = first; temp != last; ++temp)
	{
		(*show)(*temp);
	}
}
#endif